package javase.computer_peripheral;

class Keyboard implements USB{
    private String name;

    @Override
    public void connect() {
        System.out.println(name+"已经成功接入");
    }

    public void knock(){
        System.out.println("键盘正在打字...");
    }

    @Override
    public void unConnect() {
        System.out.println(name+"已经成功拔出");
    }

    public Keyboard(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Keyboard() {
    }
}
